<include file="default/public/header_common" />

<div class="top-box-store">
  <div class="top-layout"></div>
  <div class="am-g top-store">
    <div class="am-u-sm-4 am-text-center"><img src="/{$shop['shopImg']}" class="am-circle pic-autor" width="65" height="65" /></div>
    <div class="am-u-sm-8 pl-0"> <span class="f-18">{$shop['shopName']}</span> <!--<img src="__ROOT__/Apps/Wap/View/default/assets/i/i-1.png" width="20" height="20" />-->
      <div class="mt-1 am-cf"><span class="am-fr"><if condition="$shop['isFollow']"><a href="javascript:;" class="am-btn am-radius am-btn-xs btn-line">已关注</a><else /><a href="javascript:followShop({$shop['shopId']});" class="am-btn am-radius am-btn-xs btn-line">关注</a></if> </span> 店铺编号：{$shop['shopSn']}</div>
    </div>
  </div>
</div>
<div id="mx-tabs" class="am-tabs am-tabs-d2 mg-0 baobei-tab">
  <ul class="am-tabs-nav am-cf">
    <li class="am-active"><a href="{:U('Wap/shopsIndex/newGoodsList/shopId/' . $shopId)}"><span class="c-red">{$shop['newSum']}</span><br>新品宝贝</a></li>
    <li class=""><a href="{:U('Wap/shopsIndex/saleGoodsList/shopId/' . $shopId)}"><span class="c-red">{$shop['saleSum']}</span><br>在售宝贝</a></li>
    <li class=""><a href="{:U('Wap/shopsIndex/soldGoodsList/shopId/' . $shopId)}"><span class="c-red">{$shop['soldSum']}</span><br>已售欣赏</a></li>
  </ul>
  <div class="am-tabs-bd">
    <div data-tab-panel-0 class="am-tab-panel am-active">
      <ul class="cbp_tmtimeline">
      <volist name="goods" id="vo">
        <li>
          <time datetime="" class="cbp_tmtime"><span>{$vo['time']}</span></time>
          <div class="cbp_tmicon"><img src="__ROOT__/Apps/Wap/View/default/assets/i/i-mark.png" width="30" height="30" /></div>
          <div class="cbp_tmlabel">
            <ul class="am-gallery am-avg-sm-3 am-avg-md-3 am-avg-lg-4 am-gallery-default pd-0" data-am-gallery="{ pureview: true }" >
              <volist name="vo['data']" id="v">
              <li>
                <div class="am-gallery-item"> <a href="{:U('Wap/Index/goodsDetail/id/' . $v['goodsId'])}" class=""> <div class="picauto"><img src="/{$v['goodsThumbs']}"/></div> </a> </div>
              </li>
              </volist>
            </ul>
            <!--<a href="#" class="am-btn am-btn-default am-btn-block">展开更多 <i class="am-icon-sort-desc c-999"></i></a>--> </div>
        </li>
        
        </volist>
      </ul>
    </div>
  </div>
</div>
<!--<div data-am-widget="navbar" class="am-navbar am-cf navbar-bottom"
     id="">
  <ul class="am-navbar-nav am-cf am-avg-sm-4">
    <li > <a href="#" class=""> <img src="__ROOT__/Apps/Wap/View/default/assets/i/i-baobei.png"/> <span class="am-navbar-label c-333">宝贝分类</span> </a> </li>
    <li > <a href="#" class=""> <img src="__ROOT__/Apps/Wap/View/default/assets/i/i-shop.png"/> <span class="am-navbar-label c-333">店铺介绍</span> </a> </li>
    <li> <a href="#" class=""> <img src="__ROOT__/Apps/Wap/View/default/assets/i/i-link.png"/> <span class="am-navbar-label c-333">联系商家</span> </a> </li>
  </ul>
</div>-->
<script src="__ROOT__/Apps/Wap/View/default/assets/js/jquery.min.js"></script> 
<script src="__ROOT__/Apps/Wap/View/default/assets/js/amazeui.min.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
function followShop(id) {
	$.post("{:U('Wap/Users/followShop')}",{shopId:id},function(data,textStatus){
		var json = MXC.toJson(data);
		if(json.code == 1) {
			alert('关注成功！');
			location.reload();
		} else if(json.code == '100001') { 
			alert(json.info);
			window.location = "{:U('Wap/Users/login')}";
		} else {
			alert(json.info);
		}
	});
}
</script>
</body>
</html>